<?php
// +----------------------------------------------------------------------
// | ZanPianCMS [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.zanpian.com All rights reserved.
// +----------------------------------------------------------------------
// | BBS:  <http://www.feifeicms.cc>
// +----------------------------------------------------------------------
//订阅
namespace app\common\model;
use think\Model;
class Playlog extends Model{
	public function getplaylog($where,$page){
		$list =db('playlog')
		->alias('p')
		->field('p.*,vod_id,vod_name,vod_letters,vod_cid,vod_pic,vod_title,vod_addtime,vod_continu,vod_gold,vod_actor,vod_year,vod_jumpurl')
		->join('vod v','v.vod_id=p.log_vid','LEFT')
		->where($where)->order('log_addtime desc ')
		->paginate($page['limit'],false,['page'=>$page['currentpage']]); 
		//print_r($list) ;
		return $list ;
	}

}